/*
 * @Author: tangyuhui 317972442@qq.com
 * @Date: 2024-08-26 14:36:05
 * @LastEditors: tangyuhui 317972442@qq.com
 * @LastEditTime: 2024-08-30 11:08:32
 */
// /*
//  * @Author: tangyuhui 317972442@qq.com
//  * @Date: 2024-08-26 14:36:05
//  * @LastEditors: tangyuhui 317972442@qq.com
//  * @LastEditTime: 2024-08-26 23:01:06
//  */
// 监听 content script 发送的消息
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
  if (request.action === "saveData") {
    // 将数据保存到 chrome storage 中
    chrome.storage.local.set({ savedData: request.data }, function() {});
  }
});